package com.koron.car.web.authorized.service;

import com.koron.car.web.authorized.bean.entity.OperateControl;
import com.koron.car.web.authorized.bean.query.OperateControlQuery;
import com.koron.car.web.authorized.bean.vo.OperateControlVO;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (OperateControl)表服务接口
 *
 * @author twcao
 * @since 2022-03-30 16:48:32
 */
public interface OperateControlService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    OperateControlVO queryById(SessionFactory factory, String id);

    OperateControlVO queryByApplyId(SessionFactory factory, String applyId);

    OperateControlVO queryByMark(SessionFactory factory);

    OperateControlVO saveOrUpdate(SessionFactory factory, OperateControlVO OperateControl);

    /**
     * 新增数据
     *
     * @param OperateControl 实例对象
     * @return 实例对象
     */
    OperateControlVO insert(SessionFactory factory, OperateControlVO OperateControl);

    /**
     * 修改数据
     * @param oc 实例对象
     * @return 实例对象
     */
    OperateControlVO update(SessionFactory factory, OperateControlVO oc);

    List<OperateControl> queryList(SessionFactory factory, OperateControlQuery query);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(SessionFactory factory, String id);

}
